const path = require("node:path")

console.log(__filename);

console.log(path.dirname(__filename));
console.log(path.basename(__filename));
console.log(path.extname(__filename));

console.log(path.join('/foo','/cxk','/ikun'));

console.log(path.resolve("./index.js"));